
<template>
    用户的id是{{ userId }}
</template>


<script setup>

import {useRoute} from 'vue-router'
const route = useRoute()
const userId=route.params.id


</script>